<template>
  <div>
    <div>
      <h4>初步诊断</h4>
      <el-row>
        <el-col>
          <span>初步诊断（勾选）</span>
          <div class="grid-content">
            <el-checkbox-group v-model="pgForm.preliminary_diagnosis_checkList">
              <el-checkbox label="粪失禁"></el-checkbox>
              <el-checkbox label="性交痛"></el-checkbox>
              <el-checkbox label="性功能减退"></el-checkbox>
              <el-checkbox label="慢性盆腔疼痛综合征"></el-checkbox>
              <el-checkbox label="产后盆腔痛"></el-checkbox>
              <el-checkbox label="盆底肌功能异常"></el-checkbox>
              <el-checkbox label="盆底肌失迟缓型便秘"></el-checkbox>
              <el-checkbox label="急慢性尿猪留"></el-checkbox>
              <el-checkbox label="子宫复旧不良"></el-checkbox>
              <el-checkbox label="宫内残留"></el-checkbox>
              <el-checkbox label="产后颈、腰、肩痛"></el-checkbox>
              <el-checkbox label="腹直肌分离产后塑形"></el-checkbox>
              <el-checkbox label="泌浮乳不足/乳房塑形"></el-checkbox>
              <el-checkbox label="乳胀乳腺炎"></el-checkbox>
              <el-checkbox label="产后关节痛"></el-checkbox>
              <el-checkbox label="伤口疼痛/愈合不良"></el-checkbox>
              <el-input v-model="pgForm.preliminary_diagnosis_input1" placeholder="请输入内容" style="width: 50%;"></el-input>
            </el-checkbox-group>
          </div>
        </el-col>
        <el-col :span="8">
          <div>
            <span>1.阴道前壁脱垂 </span>
            <el-input v-model="pgForm.preliminary_diagnosis_input2" placeholder="" style="width: 30%;"></el-input>
            <span> 度</span>
          </div>
        </el-col>
        <el-col :span="9">
          <div>
            <span>2.阴道前壁后壁脱垂 </span>
            <el-input v-model="pgForm.preliminary_diagnosis_input3" placeholder="" style="width: 20%;"></el-input>
            <span> 度</span>
          </div>
        </el-col>
        <el-col :span="7">
          <div>
            <span>3.子宫脱垂 </span>
            <el-input v-model="pgForm.preliminary_diagnosis_input4" placeholder="" style="width: 30%;"></el-input>
            <span> 度</span>
          </div>
        </el-col>
        <el-col :span="6">
          <div>
            <span>, </span>
            <el-input v-model="pgForm.preliminary_diagnosis_input5" placeholder="" style="width: 30%;"></el-input>
            <span> 尿失禁</span>
          </div>
        </el-col>
        <el-col :span="6">
          <div>
            <span>尿失禁 </span>
            <el-input v-model="pgForm.preliminary_diagnosis_input6" placeholder="" style="width: 20%;"></el-input>
            <span> 度</span>
          </div>
        </el-col>
        <el-col :span="10">
          <div>
            <el-input
              placeholder="其他"
              v-model="pgForm.preliminary_diagnosis_textarea">
            </el-input>
          </div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "preliminary_diagnosis",
  title: "初步诊断",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data () {
    return {
      pgForm: {
        preliminary_diagnosis_input1: '',
        preliminary_diagnosis_input2: '',
        preliminary_diagnosis_input3: '',
        preliminary_diagnosis_input4: '',
        preliminary_diagnosis_input5: '',
        preliminary_diagnosis_input6: '',
        preliminary_diagnosis_input7: '',
        preliminary_diagnosis_checkList: [],
        preliminary_diagnosis_textarea: ''
      },
    };
  }
}
</script>

<style scoped>

.el-checkbox-group{
  padding: 10px 20px;
}
.el-checkbox{
  display: block;
  margin-bottom: 15px;
}
.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  flex-direction: row;
}
.el-col {
  margin:10px 0;
}
</style>
